define (require,exports,module)->
	Survey = Backbone.Model.extend
		init:()->
		load_list:(option)->
			console.log 'load list'
			$.get '/api/survey/list',{},(res)->
				if res.response.code is 0
					Backbone.trigger 'event_load_list_success',res.data
				else 
					console.log res

		create_survey:(data)->
			console.log data


		delete_survey_quesiton:(survey_id,question_id)->
			console.log project_id

		update_survey_quesiton:(survey_id,question_id,data)->
			console.log data

		read_survey:(survey_id)->
			$.get '/api/survey/read',{id:survey_id},(res)->
				console.log res
				if res.response.code is 0
					Backbone.trigger 'event_read_survey_success',res.data
				else 
					console.log res